package com.hdu.kdk_es_orm.test.entity;



import com.hdu.kdk_es_orm.annotation.DocumentId;
import com.hdu.kdk_es_orm.annotation.Index;
import com.hdu.kdk_es_orm.annotation.LogicDelete;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Index(indexName = "student")
public class Student {

    @DocumentId(documentId = "studentId")
    private Long studentId;

    private String name;

    private String school;

    private Integer age;

    private Integer classNo;

    private Integer sex;

    // 逻辑删除字段 isDelete 0 代表逻辑删除
    @LogicDelete(filedName = "isDelete", deleteValue = 0)
    private Integer isDelete;
}
